package com.hoshiicloud.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.common.query.OmnipotentParam;
import com.hoshiicloud.common.query.OmnipotentWrapper;
import com.hoshiicloud.goods.entity.goods.Gallery;
import com.hoshiicloud.goods.entity.sku.BaseSkuGallery;
import com.hoshiicloud.goods.entity.spu.BaseGoodsGallery;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 基础商品表SKU 服务类
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-04
 */
public interface BaseGoodsGalleryService extends IService<BaseGoodsGallery> {

    boolean save(BaseGoodsGallery entity);

    /**
     * 批量新增baseSpu相册信息
     */
    boolean saveBaseGoodsGalleryBatch(List<BaseGoodsGallery> galleries);

    /**
     *  批量删除: 物理删除
     */
    Boolean removeBatch(List<OmnipotentWrapper> param);

    /**
     * 批量更新baseSpu相册信息
     */
    Boolean updateBatch(OmnipotentParam<BaseGoodsGallery> param);

    boolean deleteById(Long id);

    /**
     *  通过baseSpuId查询相册信息
     */
    List<BaseGoodsGallery> listBySpuId(Long baseSpuId);
}
